<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
        <link rel="stylesheet" type="text/css" href="css/tabela.css" media="screen" />
        <link rel="stylesheet" type="text/css" href="css/estilo.css" media="screen" />
        <script src="jscript/jquery-1.7.1.min.js" type="text/javascript"></script>
        <script src="jscript/jquery.tablesorter.min.js"></script>
        <script src="jscript/jquery.tablesorter.pager.js"></script>
        <script src="jscript/valida.js" type="text/javascript"></script>
        <script src="jscript/ListarMatriculados.js" type="text/javascript"></script>
    </head>
    <body>       
        <?php require_once 'classes/class.ConexaoBD.php';
        
        $ClsBD = new ConexaoBD;
        
        $strSQL = "SELECT DISTINCT Curso FROM cadastro ORDER BY Curso";
        $Cursos = $ClsBD->ExecutarQry($strSQL, "S");       
        ?>
        <div id="wrapper">
            <div id="topo"></div>
            <div id="conteudo">
                <form id="parametros" name="parametros" method="post" onsubmit="return false;">
                    <div id="ParamEsq" class="Param">
                        <span id="lblTitConsulta" class="SpanTitulo" >Parâmetros da Consulta Geral</span><br>
                        <span id="lblCurso" class="SpanLabel">Curso: </span>
                        <select id="txtCurso" class="LinhaInput">
                            <option value="0">Selecione um curso</option>
                            <?php 
                            if(is_resource($Cursos))
                                while($Linha = mysql_fetch_assoc($Cursos)) { ?>
                                <option value="<?php echo $Linha['Curso']; ?>">
                                    <?php echo $Linha['Curso']; ?>
                                </option>
                            <?php } ?>
                        </select><br>
                        <span id="lblTurma" class="SpanLabel">Turma: </span>
                        <select id="txtTurma" class="LinhaInput">
                            <option value="0" disabled="disabled">Selecione um curso</option>
                        </select><br>
                        Listagem de Presença <input type="checkbox" id="chkPresenca">
                        <span id="lblData" class="SpanLabel" style="visibility: hidden">Data Presença: </span><input type="text" id="txtDtPresent" value="<? echo date("d/m/Y"); ?>" size="10" OnKeyPress="formatar(this, '##/##/####')" style="visibility: hidden" />
                    </div>
                    <div id="ParamDir" class="Param">Filtro de Alunos<br>
                        <span id="lblNome" class="SpanLabel">Nome: </span> <input type="Text" id="txtAluno" class="LinhaInput" /><br>
                        <span id="lblCpf" class="SpanLabel">CPF.: </span> <input type="Text" id="txtCpf" class="LinhaInput" />
                    </div>
                </form>
            </div>
            <div class="divbotao">
                <button id="consultar">Consultar</button>
            </div>
            <br>
            <div id="Titulo" class="waiting" ></div>
            <br>
            <table id="tbAlunos" class="tablesorter" style="visibility: hidden">
                <thead>
                    <tr>
                        <th>Nome</th>
                        <th>Curso</th>
                        <th>Turma</th>
                        <th>EMail</th>
                        <th>Selecionar</th>
                    </tr>
                </thead>
                <tbody></tbody>
            </table>
            <br><br>
            <div id ="funcoes" class="divsolta">
                <button id="btnDesmatricular" style="line-height: 26px;" disabled>Cancelar Matricula</button>
                <button id="btnIniciarCursoTurma" style="line-height: 26px;" disabled >Iniciar Curso/Turma</button>
                <button id="btnFinalizarCursoTurma" style="line-height: 26px;" disabled>Finalizar Curso/Turma</button>
                <span>| Presença »»» |</span>
                <button id="btnSalvarPresenca" style="line-height: 26px;" disabled >Salvar Presença</button>
            </div>
            <div id ="funcoes_apr" class="divsolta">
                <button id="btnConsultarHistorico" style="line-height: 26px;" disabled>Consultar Histórico</button>
                <button id="btnAprovarAluno" style="line-height: 26px;" disabled>Aprovar Alunos</button>
                <button id="btnReprovarAluno" style="line-height: 26px;" disabled>Reprovar Alunos</button>
<!--                <span>| Certificado »»» |</span>
                <button id="btnEmitirCertificado" style="line-height: 26px;" >Emitir Certificado</button>-->
            </div>            
            <div id="rodape"></div>
        </div>
    </body>
</html>
